{{--@extends ('store-backend::dashboard')

@section ('title','新建供应商')

@section('after-styles-end')--}}
    {!! Html::style(env("APP_URL").'/assets/backend/libs/webuploader-0.1.5/webuploader.css') !!}
{{--@stop

@section ('breadcrumbs')
    <h2>添加供应商</h2>
    <ol class="breadcrumb">
        <li><a href="{!!route('admin.store.index')!!}"><i class="fa fa-dashboard"></i> 首页</a></li>
        <li class="">{!! link_to_route('brand.index', '供应商管理') !!}</li>
        <li class="active">添加供应商</li>
    </ol>
@stop

@section('content')--}}
    <div class="ibox float-e-margins">
        <div class="ibox-content" style="display: block;">
            {!! Form::open( [ 'url' => [route('admin.supplier.store')], 'method' => 'POST','id' => 'base-form','class'=>'form-horizontal'] ) !!}

            <div class="form-group">
                {!! Form::label('name','供应商简称：', ['class' => 'col-sm-2 control-label']) !!}
                <div class="col-sm-9">
                    <input type="text" class="form-control" name="name" placeholder="" required>
                </div>
            </div>

            <div class="form-group">
                {!! Form::label('code','供应商编码：', ['class' => 'col-sm-2 control-label']) !!}
                <div class="col-sm-9">
                    <input type="text" class="form-control" name="code" placeholder="" required>
                </div>
            </div>

            <h4>企业信息</h4>
            <div class="hr-line-dashed"></div>

            <div class="form-group">
                {!! Form::label('code','企业名称：', ['class' => 'col-sm-2 control-label']) !!}
                <div class="col-sm-9">
                    <input type="text" class="form-control" name="company_name" placeholder="">
                </div>
            </div>
            <div class="form-group">
                {!! Form::label('code','企业执照注册号：', ['class' => 'col-sm-2 control-label']) !!}
                <div class="col-sm-9">
                    <input type="text" class="form-control" name="company_number" placeholder="">
                </div>
            </div>
            <div class="form-group">
                {!! Form::label('code','企业地址：', ['class' => 'col-sm-2 control-label']) !!}
                <div class="col-sm-9">
                    <input type="text" class="form-control" name="company_address" placeholder="">
                </div>
            </div>
            <div class="form-group">
                {!! Form::label('code','企业电话：', ['class' => 'col-sm-2 control-label']) !!}
                <div class="col-sm-9">
                    <input type="text" class="form-control" name="company_phone" placeholder="">
                </div>
            </div>
            <div class="form-group">
                {!! Form::label('code','营业期限：', ['class' => 'col-sm-2 control-label']) !!}
                <div class="col-sm-9">
                    <input type="text" class="form-control" name="company_limit" placeholder="">
                </div>
            </div>
            <div class="form-group">
                {!! Form::label('code','经营范围：', ['class' => 'col-sm-2 control-label']) !!}
                <div class="col-sm-9">
                    <textarea class="form-control" name="company_scope"></textarea>
                </div>
            </div>
            <div class="form-group"><label class="col-sm-2 control-label">营业执照:</label>
                <div class="col-sm-10">
                    <input type="hidden" name="company_license">
                    <img class="company_license"    src="" alt=""   style="max-width: 100px;">
                    <div id="company_license">选择图片</div>
                    <div class="clearfix"></div>
                </div>
            </div>
            <div class="form-group"><label class="col-sm-2 control-label">食品流通许可证:</label>
                <div class="col-sm-10">
                    <input type="hidden" name="company_permit">
                    <img class="company_permit"    src="" alt=""   style="max-width: 100px;">
                    <div id="company_permit">选择图片</div>
                    <div class="clearfix"></div>
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
                <div class="col-md-offset-2 col-md-8 controls">
                    <button type="submit" class="btn btn-primary">保存</button>
                </div>
            </div>
            {!! Form::close() !!}
                    <!-- /.tab-content -->
        </div>
    </div>
{{--@endsection

@section('before-scripts-end')
    {!! Html::script(env("APP_URL").'/assets/backend/libs/jquery.form.min.js') !!}--}}
    @include('store-backend::supplier.script')
{{--@stop--}}
